import * as types from '../actions/types'
import createReducer from './createReducer'

export const courses = createReducer([],{
	[types.SET_COURSES](state, action){
		return [...state, ...action.courses]
	},
	[types.CLEAR_COURSES](state, action){
		return []
	}
})
